<template>
  <div id="he-plugin-standard"></div>
</template>

<script lang="ts">

window.WIDGET = {
  "CONFIG": {
    "layout": "2",
    "width": 230,
    "height": 300,
    "background": "4",
    "dataColor": "000000",
    "backgroundColor": "FFFFFF",
    "key": "37506d3575bc459bba5c083a9f98e95d"
  }
}
import {defineComponent, onMounted} from "vue";
export default defineComponent({
  setup(){
    onMounted(() => {
      weather()
    });
    const weather = () => {
      const s = document.createElement("script");
      s.type = "text/javascript";
      s.src = "https://widget.qweather.net/standard/static/js/he-standard-common.js?v=2.0";
      document.body.appendChild(s);
    };
  }
})

</script>


